package com.dinpay.plugin.a;

import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.dinpay.plugin.b.j;
import java.util.List;

public final class a extends BaseAdapter
{
  private List a;
  private Context b = null;
  private TextView c;

  public a()
  {
  }

  public a(List paramList, Context paramContext)
  {
    this.a = paramList;
    this.b = paramContext;
  }

  public final int getCount()
  {
    return this.a.size();
  }

  public final Object getItem(int paramInt)
  {
    return Integer.valueOf(this.a.size());
  }

  public final long getItemId(int paramInt)
  {
    return paramInt;
  }

  public final View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    Object localObject;
    String str1;
    String str3;
    if (paramView == null)
    {
      a locala1 = new a();
      this.c = new TextView(this.b);
      this.c.setGravity(3);
      this.c.setTextSize(18.0F);
      this.c.setPadding(10, 10, 0, 10);
      this.c.setTextColor(Color.parseColor("#ff50494a"));
      this.c.setId(100002);
      paramView = this.c;
      locala1.a(this.c);
      paramView.setTag(locala1);
      localObject = locala1;
      j localj = (j)this.a.get(paramInt);
      if (localj != null)
      {
        str1 = localj.b();
        String str2 = localj.d();
        str3 = localj.c();
        if (!str2.equals("1"))
          break label226;
      }
    }
    label226: for (String str4 = "信用卡"; ; str4 = "借记卡")
    {
      ((a)localObject).a().setText(str1 + str4 + "    |    " + str3);
      return paramView;
      a locala2 = (a)paramView.getTag();
      locala2.a().setText("");
      localObject = locala2;
      break;
    }
  }

  final class a
  {
    private TextView b;

    a()
    {
    }

    public final TextView a()
    {
      return this.b;
    }

    public final void a(TextView paramTextView)
    {
      this.b = paramTextView;
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.a.a
 * JD-Core Version:    0.6.2
 */